package com.lfy.auth.controller;

import com.lfy.auth.domain.resp.FindFriendResp;
import com.lfy.auth.service.UserDetailService;
import com.lfy.common.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/friend")
@RestController
public class FriendController {
    @Resource
    private UserDetailService userDetailService;

    @GetMapping("/find")
    public R<FindFriendResp> findFriend(@RequestParam("sign") String sign){
       return userDetailService.findFriend(sign);
    }


}
